home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000188_icon-group-sender _Thu Aug 15 11:06:35 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
972b
Received: by cheltenham.cs.arizona.edu; Fri, 16 Aug 1996 12:46:05 MST
Date: Thu, 15 Aug 1996 11:06:35 -0700
From: Gregg Townsend <gmt>
Message-Id: <9608151806.AA09531@hawk.CS.Arizona.EDU>
To: icon-group, rjhare@tattoo.ed.ac.uk
Subject: Re: Problem with graphics
Errors-To: icon-group-errors@cs.arizona.edu
[ Roger Hare asks how to draw objects atop a grid, then make the grid
invisible when saving the image. ]
Here's another approach inspired by Gordon Peterson's suggestions.
Use a mutable color for drawing the grid:
gridcolor := NewColor("pale blue")
Fg(gridcolor)
drawgrid()
Fg("black")
drawobjects()
Then make it invisible to save the image:
Color(gridcolor, Bg())
WriteImage(filename)
This works on platforms that support mutable colors, including X windows.
Gregg Townsend / gmt@CS.Arizona.EDU / +1 520 621 4325 / 32 13 45N 110 57 16W
Computer Science / Univ of Arizona / 1040 E 4th St / Tucson AZ 85721-0077